﻿<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified">
  <xs:element name="Kwp81Ecu">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Model" type="xs:string" />
        <xs:element name="ConvertorType" type="xs:string" />
        <xs:element name="ErrorMemoryStructureDefinition" />
        <xs:element name="EcuAddress" type="xs:unsignedByte" />
        <xs:element name="EcuWarning" />
        <xs:element name="Routines" />
        <xs:element name="SnapshotDefinitions" />
        <xs:element name="Sensors">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="IsoSensor">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Name" type="xs:string" />
                    <xs:element name="ConversionId" type="xs:byte" />
                    <xs:element name="Units" type="xs:string" />
                    <xs:element name="ByteIndex" type="xs:unsignedByte" />
                    <xs:element name="ByteLenght" type="xs:unsignedByte" />
                    <xs:element name="BitShift" type="xs:unsignedByte" />
                    <xs:element name="Bitmask" type="xs:unsignedByte" />
                    <xs:element name="MaskMatches" />
                    <xs:element name="LittleEndian" type="xs:boolean" />
                    <xs:element name="UpperLimit" type="xs:float" />
                    <xs:element name="LowerLimit" type="xs:unsignedByte" />
                    <xs:element name="FlagType" type="xs:boolean" />
                    <xs:element name="Id" type="xs:unsignedShort" />
                    <xs:element name="SensorType" type="xs:string" />
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Actuators" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xsd:schema>